<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> 
	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
		<meta charset="UTF-8" />
		<meta name="description" content="" />
		<meta name="keywords" content="" />
		<meta name="author" content="" />
		
		<!--========= STYLES =========-->
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/css/reset.css" />
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/css/grid.css" />
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/css/uniform.default.css" />
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/css/chosen.css" />
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/plugins/jqueryui/all/themes/base/jquery.ui.all.css" />
        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/plugins/alerts/resources/css/jquery.toastmessage.css" />
		
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/css/style.css" />
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/css/config.css" />
		<!--[if gte IE 8]><link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/css/ie8.css" /><![endif]-->
		
		<!--============ JQUERY =============-->
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/jquery.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/jquery.uniform.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/chosen.jquery.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/jquery.placeholder.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/plugins/jqueryui/all/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="http://www.google.com/jsapi"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/plugins/gvchart/jquery.gvChart-1.0.1.min.js"></script>
		
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/head_scripts.js" type="text/javascript"></script>
						
		<!--=== ENABLE HTML5 TAGS FOR IE ===-->
		<!--[if IE]><script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/html5.js"></script><![endif]-->
        
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/plugins/alerts/javascript/jquery.toastmessage.js" type="text/javascript"></script>
        <script type="text/javascript">

			function showSuccessToast(msg) {
				$().toastmessage('showSuccessToast', msg);
			}
			function showStickySuccessToast(msg) {
				$().toastmessage('showToast', {
					text     : msg,
					sticky   : true,
					position : 'top-right',
					type     : 'success',
					closeText: '',
					close    : function () {
						console.log("closed ...");
					}
				});

			}
			function showNoticeToast(msg) {
				$().toastmessage('showNoticeToast', msg);
			}
			function showStickyNoticeToast(msg) {
				$().toastmessage('showToast', {
					 text     : msg,
					 sticky   : true,
					 position : 'top-right',
					 type     : 'notice',
					 closeText: '',
					 close    : function () {console.log("toast is closed ...");}
				});
			}
			function showWarningToast(msg) {
				$().toastmessage('showWarningToast', msg);
			}
			function showStickyWarningToast(msg) {
				$().toastmessage('showToast', {
					text     : msg,
					sticky   : true,
					position : 'top-right',
					type     : 'warning',
					closeText: '',
					close    : function () {
						console.log("toast is closed ...");
					}
				});
			}
			function showErrorToast(msg) {
				$().toastmessage('showErrorToast', msg);
			}
			function showStickyErrorToast(msg) {
				$().toastmessage('showToast', {
					text     : msg,
					sticky   : true,
					position : 'top-right',
					type     : 'error',
					closeText: '',
					close    : function () {
						console.log("toast is closed ...");
					}
				});
			}
		</script>
		
		<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	</head>

	<body>				
	<section class="top_panel">
		<div class="panel_elements">
			<ul class="panel_item">
				<li><a href="#">Private messages [14]</a></li>
				<li><a href="#">System Log [52]</a></li>
				<li><a href="#">Inactive entries [6]</a></li>
				<li><a href="#">Comments approval [89]</a></li>
				<li><a href="#">New users [27]</a></li>
				<li><a href="#">Settings</a></li>
				<li class="right"><a href="<?php echo $this->createUrl("/administrator/account/logout"); ?>">Logout<span class="logout"></span></a></li>
			</ul>
		</div>
	</section>
	<section id="main_wrapper">
	<section class="wrapper_layout">
		<section class="container">
			<section class="container_12">
				<section id="page_content" class="page_content">					
					<section class="header grid_12">
						<a class="logo" href="<?php echo $this->createUrl("/administrator/default/index"); ?>"></a>
						<form method="get" id="searchform" action="#">
							<input placeholder="Search..." type="text" name="s" id="s" />
						</form>
						<div class="clear"></div>
					</section>
					<div>
						<ul id="menu">
							<li>
                                <?php echo YWSHtml::SecuredMenuHeading(YWSHtml::localize("Dashboard")); ?>
                            </li>
							<li>
                                <?php echo YWSHtml::SecuredMenuHeading(YWSHtml::localize("System"),"icon6") ?>
								<ul>	 
									<?php echo YWSHtml::SecuredMenu("/administrator/user/index", "Users") ?>
                                    <?php echo YWSHtml::SecuredMenu("/administrator/role/index", "Roles") ?>
								</ul>
							</li>
							<li>
                                <?php echo YWSHtml::SecuredMenuHeading(YWSHtml::localize("Content")) ?>
							</li>
						</ul><!--End of #menu-->
					</div>
					<div class="clear"></div>
					<div class="position_search">
						<div class="positioner">
							<a href="index.html"><span>Breadcrumb</span></a>
						</div>
					</div>
                    
                    <?php
                        if (YWSMessenger::Displayable())
                            echo YWSMessenger::DisplayMessage();
                    ?>
                    <?php echo $content; ?>
                    
                    
					<div class="clear"></div>
					
				</section><!-- end of #page_content -->
			</section><!-- end of #container_12 -->
		</section><!-- end of #container -->
	</section><!-- End of .wrapper_layout -->
	</section><!-- End of #main_wrapper -->
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/ui_calls.js" type="text/javascript"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/themes/default_admin/js/scripts.js" type="text/javascript"></script>
	</body>

</html>
<!-- Localized -->